import request from '@/utils/request'
export default {
    //分页评论
    getPageList(page, limit, courseId) {
        return request({
            url: `/eduservice/educomment/${page}/${limit}`,
            method: 'get',
            params: {courseId}
        })
    },
    //添加评论
    addComment(comment) {
        return request({
            url: `/eduservice/educomment/auth/save`,
            method: 'post',
            data: comment
        })
    },
    //删除评论
    deleteComment(id){
        return request({
            url: `/eduservice/educomment/auth/delete`,
            method: 'post',
            params: {id}
        })
    }
}